﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Revis.VClinicNet.Core.Domain
{
    public class WorkSchedule
    {
        public virtual IDictionary<DayOfWeek, WorkTime> WorkTimes { get;  protected set; }

        public WorkSchedule()
        {
            WorkTimes = new Dictionary<DayOfWeek, WorkTime>();
        }

            

        public virtual void Set(DayOfWeek day, WorkTime workTime)
        {
            if (workTime == null) {
                throw new ArgumentNullException("Null work time");
            }
            WorkTimes[day] = workTime;
        }

        public virtual WorkTime Get(DayOfWeek day)
        {
            return WorkTimes[day];
        }
    }
}
